package com.qfjy.zhujunwei.impl;

import com.qfjy.zhujunwei.Image;

/**
 * @author: zjw
 * @date: 2022/9/13 0013  17:56
 * @version: 1.0
 * @description:
 */
public class RealImage implements Image {

    private String fileName;

    public RealImage(String fileName){
        this.fileName = fileName;
        loadFromDisk(fileName);
    }

    @Override
    public void display() {
        System.out.println("Displaying " + fileName);
    }

    private void loadFromDisk(String fileName){
        System.out.println("Loading " + fileName);
    }
}
